package com.ztgf.sys.models.bo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztgf.common.bo.BaseBO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 发送信息布告表BO
 *
 * @author liyqng
 * @Date 2021-05-13 17:03:03
 */
@Data
public class SysNoticeBO extends BaseBO implements Serializable {
    @ApiModelProperty(value = "状态 0未发送，1发送成功，2发送失败")
    private Integer status;
    @ApiModelProperty("开始时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    @ApiModelProperty("结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    @ApiModelProperty(value = "发布标题")
    private String content;
    @ApiModelProperty(value = "状态 0短信，1邮件，2系统")
    private Integer type;
    @ApiModelProperty("发送者ID")
    protected Long sendId;
    @ApiModelProperty(value = "邮件标题")
    private String mailTitle;


}
